/**
 * [DragonApp.view.notice.Form description]
 * 公告查询表单
 */
Ext.define('DragonApp.view.notice.Form', {
    extend: 'Ext.form.Panel',

    alias: ['widget.noticequery'],

    requires: [
        'DragonApp.view.pub.combobox.Channel'
    ],

    controller: 'notice',

    bodyPadding: 5,
    border: false,

    fieldDefaults: {
        labelWidth: 60,
        labelAlign: 'right'
    },

    items: [{
        xtype: 'fieldcontainer',
        layout: 'hbox',
        items: [{
            xtype: "channelcombobox",
            name: "channel",
            fieldLabel: "渠道",
            width: 238,
            listeners: {
                specialKey: 'onTextFieldSpecialKey'
            }
        }]
    }],
    buttons: [{
        text: '取消',
        handler: function() {
            var form = this.up('form').getForm();
            form.reset();
        }
    }, {
        text: '查询',
        handler: 'onSubmitClick'
    }]
});